DateTimeEditors for WinRT
Setting the Selected Time

You can specify the time of a C1TimeSelector control by setting the SelectedDate property in XAML or code.

In XAML

To specify the initially selected date, edit your XAML markup to resemble the following:

Markup
Copy Code
<Xaml:C1DateTimeSelector SelectedDate="1932, 10, 12/>

 

In Code

C#
Copy Code
c1TS1.SelectedTime = new TimeSpan( 02, 05, 05);

 

Visual Basic
Copy Code
c1TS1.SelectedTime = New TimeSpan(02, 05, 05)
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback